#include <stdio.h>
#include <stdlib.h>

int g_val_1;
int g_val_2 = 100;


int main()
{
   // printf("Hello world\n");
   // return 0;
       
    printf("code addr : %p\n", main);

    const char *str = "hello world";
    printf("read only string addr : %p\n", str);

    printf("init global value addr : %p\n", &g_val_2);
    printf("uninit global value addr : %p\n", &g_val_1);

    char *mem = (char*)malloc(100);
    printf("heap addr : %p\n", mem);

    printf("stack addr : %p\n", &str);

    return 0;
}

